passt-0^20240624.g1ee2eca-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/conf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/dhcp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/dhcpv6.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/flow.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/fwd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/icmp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def7]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/icmp.c:271: error[legacyUninitvar]: Uninitialized variable: id_sock
#  269|   	}
#  270|   
#  271|-> 	if (!(pingf = *id_sock))
#  272|   		if (!(pingf = icmp_ping_new(c, id_sock, af, id)))
#  273|   			return 1;

Error: CPPCHECK_WARNING: [#def8]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/isolation.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/ndp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/netlink.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def11]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/packet.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/passt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/pasta.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/qrap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def15]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/qrap.c: scope_hint: In function ‘main’
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/qrap.c:402:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(s, (int)fd)’
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/qrap.c: scope_hint: In function ‘main’
#  400|   	fprintf(stderr, "Connected to %s\n", addr.sun_path);
#  401|   
#  402|-> 	if (dup2(s, (int)fd) < 0) {
#  403|   		perror("dup");
#  404|   		exit(EXIT_FAILURE);

Error: CPPCHECK_WARNING: [#def16]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/tap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def17]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/tcp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def18]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/tcp.c:2299:19: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 2297|   	flow_initiate(flow, ref.tcp_listen.pif);
# 2298|   
# 2299|-> 	if (sa.sa_family == AF_INET) {
# 2300|   		const struct in_addr *addr = &sa.sa4.sin_addr;
# 2301|   		in_port_t port = sa.sa4.sin_port;

Error: CPPCHECK_WARNING: [#def19]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/tcp_buf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/tcp_splice.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def21]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/udp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def22]
passt-0_20240624.g1ee2eca-build/passt-1ee2ecade3f41e2a3e51c1e580b08cba977a7c8d/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-138.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namepasst-0^20240624.g1ee2eca-1.fc41
store-results-to/tmp/tmpml7ur__4/passt-0^20240624.g1ee2eca-1.fc41.tar.xz
time-created2024-07-03 16:38:20
time-finished2024-07-03 16:41:18
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpml7ur__4/passt-0^20240624.g1ee2eca-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpml7ur__4/passt-0^20240624.g1ee2eca-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9